import random
#list1=list([1,2,3,4,5,6,7,8])
list1=[]
score=1
print("请输入八个1-33之间的数字（用逗号分隔）:")
list2=input().split(",")
list2=[int(list2[i]) for i in range(0,len(list2))]
for i in range(8):
     list1.append(random.randrange(1,33,10))
print(list1)
for i in range(0,(len(list2)-1)):
    if list2[i] == list1[i]:
        score+=1
    else:
        score==0
if score==5:
    print("恭喜你获得四等奖")
elif score==6:
    print("恭喜你获得三等奖")
elif score==7:
    print("恭喜你获得二等奖")
elif score==8:
    print("恭喜你获得一等奖")
else:
    print("没中奖")